package com.chalk.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.chalk.model.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 平台角色信息(SysRole)表数据库访问层
 *
 * @author maxiaoqiang
 * @since 2019-03-22 17:38:25
 */
@Mapper
public interface SysRoleDao extends BaseMapper<SysRole> {

    /*自定义接口*/

    /**
     * 根据主键批量(逻辑)删除
     *
     * @param ids
     * @return
     */
    int deleteBatchByPrimaryKey(String[] ids);


    SysRole getRoleByUser(@Param("userName")String userName);

    List<SysRole> selectUserRoleByMap(Map<Object, Object> param);
}